#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N=1e5+10;
int n,h[N],k,cnt;
signed main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>k;
        h[k]++;
    }
    for(int i=1;i<N;i++){
        cnt=max((int)(0),cnt-h[i]);
        cnt+=h[i];
    }
    cout<<cnt<<'\n';
    return 0;
}